package com.ecoolex.ying.space.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class UserWorksOpusExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public UserWorksOpusExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public UserWorksOpusExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public UserWorksOpusExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        UserWorksOpusExample example = new UserWorksOpusExample();
        return example.createCriteria();
    }

    public UserWorksOpusExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public UserWorksOpusExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public UserWorksOpusExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public UserWorksOpusExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public UserWorksOpusExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andWorksIdIsNull() {
            addCriterion("userworksopus.WorksId is null");
            return (Criteria) this;
        }

        public Criteria andWorksIdIsNotNull() {
            addCriterion("userworksopus.WorksId is not null");
            return (Criteria) this;
        }

        public Criteria andWorksIdEqualTo(Integer value) {
            addCriterion("userworksopus.WorksId =", value, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.WorksId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksIdNotEqualTo(Integer value) {
            addCriterion("userworksopus.WorksId <>", value, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdNotEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.WorksId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksIdGreaterThan(Integer value) {
            addCriterion("userworksopus.WorksId >", value, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdGreaterThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.WorksId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("userworksopus.WorksId >=", value, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdGreaterThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.WorksId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksIdLessThan(Integer value) {
            addCriterion("userworksopus.WorksId <", value, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdLessThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.WorksId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksIdLessThanOrEqualTo(Integer value) {
            addCriterion("userworksopus.WorksId <=", value, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdLessThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.WorksId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWorksIdIn(List<Integer> values) {
            addCriterion("userworksopus.WorksId in", values, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdNotIn(List<Integer> values) {
            addCriterion("userworksopus.WorksId not in", values, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdBetween(Integer value1, Integer value2) {
            addCriterion("userworksopus.WorksId between", value1, value2, "worksId");
            return (Criteria) this;
        }

        public Criteria andWorksIdNotBetween(Integer value1, Integer value2) {
            addCriterion("userworksopus.WorksId not between", value1, value2, "worksId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("userworksopus.UserId is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("userworksopus.UserId is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("userworksopus.UserId =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UserId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("userworksopus.UserId <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UserId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("userworksopus.UserId >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UserId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("userworksopus.UserId >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UserId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("userworksopus.UserId <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UserId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("userworksopus.UserId <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UserId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("userworksopus.UserId in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("userworksopus.UserId not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("userworksopus.UserId between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("userworksopus.UserId not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionIsNull() {
            addCriterion("userworksopus.StatementDescription is null");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionIsNotNull() {
            addCriterion("userworksopus.StatementDescription is not null");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionEqualTo(String value) {
            addCriterion("userworksopus.StatementDescription =", value, "statementDescription");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.StatementDescription = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionNotEqualTo(String value) {
            addCriterion("userworksopus.StatementDescription <>", value, "statementDescription");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionNotEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.StatementDescription <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionGreaterThan(String value) {
            addCriterion("userworksopus.StatementDescription >", value, "statementDescription");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionGreaterThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.StatementDescription > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("userworksopus.StatementDescription >=", value, "statementDescription");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionGreaterThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.StatementDescription >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionLessThan(String value) {
            addCriterion("userworksopus.StatementDescription <", value, "statementDescription");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionLessThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.StatementDescription < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionLessThanOrEqualTo(String value) {
            addCriterion("userworksopus.StatementDescription <=", value, "statementDescription");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionLessThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.StatementDescription <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionLike(String value) {
            addCriterion("userworksopus.StatementDescription like", value, "statementDescription");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionNotLike(String value) {
            addCriterion("userworksopus.StatementDescription not like", value, "statementDescription");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionIn(List<String> values) {
            addCriterion("userworksopus.StatementDescription in", values, "statementDescription");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionNotIn(List<String> values) {
            addCriterion("userworksopus.StatementDescription not in", values, "statementDescription");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionBetween(String value1, String value2) {
            addCriterion("userworksopus.StatementDescription between", value1, value2, "statementDescription");
            return (Criteria) this;
        }

        public Criteria andStatementDescriptionNotBetween(String value1, String value2) {
            addCriterion("userworksopus.StatementDescription not between", value1, value2, "statementDescription");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionIsNull() {
            addCriterion("userworksopus.AreaDescription is null");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionIsNotNull() {
            addCriterion("userworksopus.AreaDescription is not null");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionEqualTo(String value) {
            addCriterion("userworksopus.AreaDescription =", value, "areaDescription");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.AreaDescription = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionNotEqualTo(String value) {
            addCriterion("userworksopus.AreaDescription <>", value, "areaDescription");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionNotEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.AreaDescription <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionGreaterThan(String value) {
            addCriterion("userworksopus.AreaDescription >", value, "areaDescription");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionGreaterThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.AreaDescription > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("userworksopus.AreaDescription >=", value, "areaDescription");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionGreaterThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.AreaDescription >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionLessThan(String value) {
            addCriterion("userworksopus.AreaDescription <", value, "areaDescription");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionLessThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.AreaDescription < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionLessThanOrEqualTo(String value) {
            addCriterion("userworksopus.AreaDescription <=", value, "areaDescription");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionLessThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.AreaDescription <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionLike(String value) {
            addCriterion("userworksopus.AreaDescription like", value, "areaDescription");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionNotLike(String value) {
            addCriterion("userworksopus.AreaDescription not like", value, "areaDescription");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionIn(List<String> values) {
            addCriterion("userworksopus.AreaDescription in", values, "areaDescription");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionNotIn(List<String> values) {
            addCriterion("userworksopus.AreaDescription not in", values, "areaDescription");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionBetween(String value1, String value2) {
            addCriterion("userworksopus.AreaDescription between", value1, value2, "areaDescription");
            return (Criteria) this;
        }

        public Criteria andAreaDescriptionNotBetween(String value1, String value2) {
            addCriterion("userworksopus.AreaDescription not between", value1, value2, "areaDescription");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionIsNull() {
            addCriterion("userworksopus.StyleDescription is null");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionIsNotNull() {
            addCriterion("userworksopus.StyleDescription is not null");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionEqualTo(String value) {
            addCriterion("userworksopus.StyleDescription =", value, "styleDescription");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.StyleDescription = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionNotEqualTo(String value) {
            addCriterion("userworksopus.StyleDescription <>", value, "styleDescription");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionNotEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.StyleDescription <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionGreaterThan(String value) {
            addCriterion("userworksopus.StyleDescription >", value, "styleDescription");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionGreaterThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.StyleDescription > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("userworksopus.StyleDescription >=", value, "styleDescription");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionGreaterThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.StyleDescription >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionLessThan(String value) {
            addCriterion("userworksopus.StyleDescription <", value, "styleDescription");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionLessThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.StyleDescription < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionLessThanOrEqualTo(String value) {
            addCriterion("userworksopus.StyleDescription <=", value, "styleDescription");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionLessThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.StyleDescription <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionLike(String value) {
            addCriterion("userworksopus.StyleDescription like", value, "styleDescription");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionNotLike(String value) {
            addCriterion("userworksopus.StyleDescription not like", value, "styleDescription");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionIn(List<String> values) {
            addCriterion("userworksopus.StyleDescription in", values, "styleDescription");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionNotIn(List<String> values) {
            addCriterion("userworksopus.StyleDescription not in", values, "styleDescription");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionBetween(String value1, String value2) {
            addCriterion("userworksopus.StyleDescription between", value1, value2, "styleDescription");
            return (Criteria) this;
        }

        public Criteria andStyleDescriptionNotBetween(String value1, String value2) {
            addCriterion("userworksopus.StyleDescription not between", value1, value2, "styleDescription");
            return (Criteria) this;
        }

        public Criteria andVrLinkIsNull() {
            addCriterion("userworksopus.VrLink is null");
            return (Criteria) this;
        }

        public Criteria andVrLinkIsNotNull() {
            addCriterion("userworksopus.VrLink is not null");
            return (Criteria) this;
        }

        public Criteria andVrLinkEqualTo(String value) {
            addCriterion("userworksopus.VrLink =", value, "vrLink");
            return (Criteria) this;
        }

        public Criteria andVrLinkEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.VrLink = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVrLinkNotEqualTo(String value) {
            addCriterion("userworksopus.VrLink <>", value, "vrLink");
            return (Criteria) this;
        }

        public Criteria andVrLinkNotEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.VrLink <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVrLinkGreaterThan(String value) {
            addCriterion("userworksopus.VrLink >", value, "vrLink");
            return (Criteria) this;
        }

        public Criteria andVrLinkGreaterThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.VrLink > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVrLinkGreaterThanOrEqualTo(String value) {
            addCriterion("userworksopus.VrLink >=", value, "vrLink");
            return (Criteria) this;
        }

        public Criteria andVrLinkGreaterThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.VrLink >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVrLinkLessThan(String value) {
            addCriterion("userworksopus.VrLink <", value, "vrLink");
            return (Criteria) this;
        }

        public Criteria andVrLinkLessThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.VrLink < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVrLinkLessThanOrEqualTo(String value) {
            addCriterion("userworksopus.VrLink <=", value, "vrLink");
            return (Criteria) this;
        }

        public Criteria andVrLinkLessThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.VrLink <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andVrLinkLike(String value) {
            addCriterion("userworksopus.VrLink like", value, "vrLink");
            return (Criteria) this;
        }

        public Criteria andVrLinkNotLike(String value) {
            addCriterion("userworksopus.VrLink not like", value, "vrLink");
            return (Criteria) this;
        }

        public Criteria andVrLinkIn(List<String> values) {
            addCriterion("userworksopus.VrLink in", values, "vrLink");
            return (Criteria) this;
        }

        public Criteria andVrLinkNotIn(List<String> values) {
            addCriterion("userworksopus.VrLink not in", values, "vrLink");
            return (Criteria) this;
        }

        public Criteria andVrLinkBetween(String value1, String value2) {
            addCriterion("userworksopus.VrLink between", value1, value2, "vrLink");
            return (Criteria) this;
        }

        public Criteria andVrLinkNotBetween(String value1, String value2) {
            addCriterion("userworksopus.VrLink not between", value1, value2, "vrLink");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("userworksopus.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("userworksopus.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("userworksopus.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("userworksopus.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("userworksopus.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("userworksopus.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("userworksopus.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("userworksopus.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("userworksopus.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("userworksopus.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("userworksopus.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("userworksopus.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("userworksopus.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("userworksopus.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("userworksopus.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("userworksopus.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("userworksopus.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("userworksopus.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("userworksopus.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("userworksopus.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("userworksopus.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("userworksopus.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("userworksopus.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("userworksopus.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("userworksopus.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("userworksopus.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("userworksopus.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("userworksopus.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("userworksopus.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("userworksopus.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("userworksopus.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("userworksopus.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("userworksopus.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("userworksopus.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("userworksopus.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("userworksopus.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("userworksopus.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("userworksopus.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("userworksopus.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("userworksopus.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("userworksopus.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("userworksopus.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("userworksopus.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("userworksopus.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("userworksopus.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("userworksopus.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("userworksopus.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("userworksopus.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("userworksopus.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("userworksopus.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("userworksopus.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("userworksopus.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("userworksopus.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("userworksopus.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("userworksopus.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("userworksopus.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("userworksopus.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("userworksopus.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("userworksopus.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("userworksopus.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(UserWorksOpus.Column column) {
            addCriterion(new StringBuilder("userworksopus.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("userworksopus.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("userworksopus.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("userworksopus.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("userworksopus.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private UserWorksOpusExample example;

        protected Criteria(UserWorksOpusExample example) {
            super();
            this.example = example;
        }

        public UserWorksOpusExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(UserWorksOpus.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(UserWorksOpus.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.ying.space.entity.UserWorksOpusExample example);
    }
}